<%-- 
    Document   : list
    Created on : Oct 23, 2011, 5:28:02 PM
    Author     : Yudi Retanto
--%>

<%@page import="com.moedik.classes.BusService"%>
<%@page import="com.moedik.model.ShuttleModel"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
    <tr>
        <th class="td-no">No</th>
        <th>Airport Tujuan</th>
        <th>Maskapai</th>
        <th>Kelas</th>
        <th>Harga</th>
        <th>Tanggal</th>
        <th>Jam</th>
        <th>Action</th>
    </tr>
    <c:forEach items="${schedules}" var="schedule">
        <c:set var="ordinal" value="${ordinal + 1}" />
        <tr id="record-${schedule.getID()}">
            <td class="td-no">${ordinal}</td>
            <td>${schedule.getDestination()}</td>
            <td>${schedule.getAirline()}</td>
            <td>${schedule.getClassName()}</td>
            <td>${schedule.getFare()}</td>
            <td>${schedule.getDate()}</td>
            <td>${schedule.getHour()}</td>
            <td><a href="./flights?action=confirm_book&id=${schedule.getID()}&date=${schedule.getDate()}&time=${schedule.getHour()}">Book</a></td>
        </tr>
    </c:forEach>
